<?php
include('sql.php');
$query = mysql_query('SELECT * from apps');
if (!$query) { die('Invalid query: ' . mysql_error()); }
echo "<br>";
while($row = mysql_fetch_array($query))
  {
  echo "<a href=unique.php?id=" . $row['app_id'] . "><img border=0 src=" . $row['icon'] . "></a>&nbsp;";
  }

?>
